home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / DOC / FORMATS.DOC < prev    next >
Text File  |  1992-11-23  |  971b  |  44 lines

  1. FILE FORMATS:
  2.  
  3. .yar    : YakARchive binary file
  4.       0-directoryIndex    : datafiles
  5.       directoryIndex-(end-2): directory entries
  6.                     filename (15 bytes)
  7.                     index    (4 bytes)
  8.                     filesize (4 bytes)
  9.       (end - 2)        : number of entries (2 bytes)
  10.  
  11. .yak    : yakIcon file
  12.       Identification    : 10 bytes ("YARFILE   ")
  13.       width            : 2 bytes
  14.       height        : 2 bytes
  15.       Data            : (width4 * height) bytes in planar
  16.                   bitmap format
  17. where width4 is the least multiple of 4 >= width.  Padded with zeros
  18. to make the bitmap width4 bytes wide.
  19.  
  20. ie linear bitmap:
  21.  
  22. 012345
  23. 012345
  24.  
  25. goes to:
  26.  
  27. (int) 8 : 2 bytes
  28. (int) 2 : 2 bytes
  29. 0303 plane 1
  30. 1414       2
  31. 2525       3
  32. 3030       4--->16 bytes
  33.  
  34. .ypl    : yakPalette file
  35.       r0, g0, b0--->r255, g255, b255; ie groups of three bytes per
  36.       color
  37.  
  38. .fnt    : yakFont file
  39.       startChar  (2 bytes)
  40.       charHeight (1 byte)
  41.       charWidth  (1 byte)
  42.       fontData   (array of bytes, with (height) bytes per character)
  43.  
  44.